import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

Vue.filter('dateFormat', function(timestamp) {  // 时间格式化过滤器
	let time = new Date(timestamp * 1000);
	let year = time.getFullYear();
	let month = (time.getMonth() + 1).toString().padStart(2, '0');
	let date = time.getDate().toString().padStart(2, '0');
	let hour = time.getHours().toString().padStart(2, '0');
	let minute = time.getMinutes().toString().padStart(2, '0');
	let second = time.getSeconds().toString().padStart(2, '0');
	return year +'-'+ month +'-'+ date +' '+ hour +':'+ minute +':'+ second;
});

const app = new Vue({
    ...App
})
app.$mount()
